package com.javadroid.model;

import com.javadroid.interfaces.SmartNovelas;



public class EnderecoURLModel implements SmartNovelas {
	

	private static final long serialVersionUID = 5224776805881550217L;
	private Integer id;
	private int id_novela;
	private String enderecoUrl;
	private boolean ativo;
	private String enderecoAux;
	
	@Override
	public Integer getId() {
		return id;
	}
	@Override
	public void setId(Integer id) {
		this.id = id;
	}
	public String getEnderecoUrl() {
		return enderecoUrl;
	}
	public void setEnderecoUrl(String enderecoUrl) {
		this.enderecoUrl = enderecoUrl;
	}

	public int getId_novela() {
		return id_novela;
	}
	public void setId_novela(int id_novela) {
		this.id_novela = id_novela;
	}
	public boolean isAtivo() {
		return ativo;
	}
	public void setAtivo(boolean ativo) {
		this.ativo = ativo;
	}
	public String getEnderecoAux() {
		return enderecoAux;
	}
	public void setEnderecoAux(String enderecoAux) {
		this.enderecoAux = enderecoAux;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		EnderecoURLModel other = (EnderecoURLModel) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}
	
	
}
